package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.MaintenanceFile;
import cn.topevery.garden.entity.query.MaintenanceFileQuery;
import cn.topevery.garden.entity.vo.MaintenanceFileVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;

/**
 * 保养记录 附件表
 *
 * @author code-generate
 * @date 2022-02-17
 */
public interface MaintenanceFileDao extends BaseDao<MaintenanceFile> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<MaintenanceFileVO> listPage(MaintenanceFileQuery query);

    MaintenanceFile getEntityByColumn(String key, String value);

    List<MaintenanceFile> getListByMainId(Integer mainId);

    void deleteByMainId(Integer mainId);

    void deleteByMainIds(Integer[] ids);
}
